package com.example.demo.bean;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2021年01⽉25⽇<br/>
 * @version：v1.0.0<br>
 */
public class Fruit implements Cloneable{

    String name;
    static String value;

    public Fruit(String name) {
        this.name = name;
    }

    public String getName(){
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Fruit clone(){
        try {
            return (Fruit) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }

    static {
        value = "hello";
    }

    public static String getValue(){
        return value;
    }
}
